class UserCollection < ActiveRecord::Base
  belongs_to :user
  belongs_to :collection
  attr_accessor :user, :collection, :collection_id
  attr_accessible :user, :collection, :collection_id
  # attr_accessible :title, :body
  
  validates :user_id, :presence => true
  validates :collection_id, :presence => true
  
  def collection_id=(collection_id)
    write_attribute(:collection_id, collection_id)
  end
  
  def collection_id
    read_attribute(:collection_id)
  end
end
